package com.example.shengyin.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
@ApiModel("地区类")
public class Join {

    @ApiModelProperty("编号")
    private Long id;
    @ApiModelProperty("用户编号")
    private Long userid;

    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @ApiModelProperty("注册时间")
    private Date jointime;

    @Pattern(regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$",message = "请输入正确的手机号！")
    @ApiModelProperty("手机号")
    private String phone;


    @Length(max = 40,min = 1,message = "登录名长度长度在1-40之间")
    @ApiModelProperty("参加人")
    private String uname;

    @ApiModelProperty("是否出席")
    private boolean isattend;
    @ApiModelProperty("活动号")
    private Long eventid;
    private String eventname;


}
